Resolve disagreements in accounting of tooltip positions on Android
authorPo Lu <luangruo@yahoo.com>
Sun, 7 Apr 2024 06:39:42 +0000 (14:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 7 Apr 2024 06:51:29 +0000 (14:51 +0800)
commit8ee1dc8f1f9aa47260f8151c9eea30fb1ccf878a
tree1e3ba7d7b803b83ca80eca1d23565b56f004cac4
parentc7a0e4faa2a584063e4ace0ac4da8fb0ae1c5e50
Resolve disagreements in accounting of tooltip positions on Android

* java/org/gnu/emacs/EmacsService.java (getLocationInWindow):
New function.

* java/org/gnu/emacs/EmacsWindow.java (translateCoordinates):
Derive "root window" position from the origin point of the
containing activity's window rather than that of the screen,
the two of which differ when "freeform mode" is enabled.
java/org/gnu/emacs/EmacsService.java
java/org/gnu/emacs/EmacsWindow.java